package vn.edu.saigontech.ncms.web.offering;

import vn.edu.saigontech.ncms.util.Checker;
import vn.edu.saigontech.ncms.web.AbstractValidator;

@SuppressWarnings("serial")
public class ValidateEvaluateTeacherAction extends AbstractValidator {
	
	private String teacher;
	
	public String check() {
		if(Checker.isEmpty(this.teacher)) {
			this.sendKeyError("validator.required", "teacher");
		}
		
		return this.toSuccess();
	}

	public String getTeacher() {
		return teacher;
	}

	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}
}
